home *** CD-ROM | disk | FTP | other *** search
- EditMemo for Clarion 3
- ======================
- Version 1.0
- Copyright 1994 Mander Li
- All rights reserved
-
-
-
- Description
- -----------
- This is a little screen editor for editing a memo field.
-
-
-
- Packing list
- ------------
- The .ZIP file should contain the following files:
- 1. DDVEDTME.DLL
- 2. DDVEDTME.LIB
- 3. DESEDTME.DLL
- 4. DESEDTME.LIB
- 5. DEVEDTME.LIB
- 6. DOVEDTME.LIB
- 7. EDITMEMO.DOC - this file
- 8. EDITMEMO.INC
- 9. EDM.DAT - test data
- 10. EDM.K01
- 11. EDM.MEM
- 12. TESTEDM.APP - test application
- 13. TESTEDM.DCT
- 14. TESTEDM.PR
-
-
-
- Installation and Test Run
- -------------------------
- 1. Create a directory called C:\CLARION3\EDITMEMO for running the demo
- 2. Change directory to it and unzip all the files into this directory
- 3. Move MEMOEDIT.INC C:\CLARION3
- 4. Move *.DLL to C:\CLARION3
- 5. Move *.LIB to C:\CLARION3\LIB
- 6. Run CDD, make and run TESTEDM.APP
- 7. While you are in the memo field, press F1 to get a list of all the
- editor commands
-
-
-
- How to set up EditMemo from in AppGen
- -------------------------------------
- 1. In the Form, put the following lines in the 'Data Section' embed:
- MemoGroup GROUP,OVER(MemoField)
- MemoArray STRING(MemoColumnWidth),DIM(MemoRows)
- END
-
- where MemoField is the name of the memo, eg fil:memo
- MemoColumnWidth is the number of characters per row; maximum 80;
- MemoRows is the number of rows in the memo
-
- For example, the embed may actually like this:
- MemoGroup GROUP,OVER(fil:memo)
- MemoArray STRING(76, 50)
- END
-
-
- Note that (1) MemoColumnWidth times MemoRows must be equal to the
- maximum length of the memo.
- (2) MemoGroup and MemoArray are just arbitray names. You
- can use any other names.
-
- 2. Put the memo field as an entry field in the Form as normal. And put
- the following lines into the 'When Text Field is Selected' embed:
-
- IF ~NonStopSelect
- ALERT
- ALERT(AltO)
- ALERT(AltC)
- !
- ! Alert all other keys here.
- ! The hot keys of each entry field and button have to be alerted
- !
- EditMemo(MemoGroup, MemoArray, ?MemoField)
- END
-
- where MemoGroup and MemoArray are as defined in step 1;
- MemoField is the field name of the memo
-
- For example, if the form has three buttons: ?Ok, ?Cancel, and ?Items;
- and two other entry fields (excluding the memo field) with hot keys S
- and N, then the embed may actually like this:
-
- IF ~NonStopSelect
- ALERT
- ALERT(AltO)
- ALERT(AltC)
- ALERT(AltI)
- ALERT(AltS)
- ALERT(AltN)
- EditMemo(MemoGroup, MemoArray, ?fil:memo)
- END
-
-
- 3. While you are in the Form, click on the Procedures button, and insert
- 'EditMemo' in the Procedure Calls table
-
- 4. If you are not at the Procedure Worksheet, shift to the Module view
- by pressing Ctrl-L. Press the Insert key to add in a new module:
-
- Module Name: %clapfx%EDTME.LIB
- Type: External Object Module
- Include file: C:\CLARION3\EDITMEMO.INC
-
- 5. Go back to the Procedure view by pressing Ctrl-P. Now define the
- ToDo procedure EditMemo as:
-
- Template: External
- Module Name: %clapfx%EDTME.LIB
-
-
-
- Modifications
- -------------
- If you look at the include file EDITMEMO.INC, you'll find that there are
- two optional parameters to the EditMemo procedure.
-
- 4th parameter - a byte constant or variable. If set to zero, the status
- line (the 25th row of the screen) will be suppressed.
-
- 5th parameter - a group field containing the following fields (in the
- following order) that change the color and the
- keystrokes to activate a command.
-
- NormalColor byte(48) !Black on cyan - color for normal text
- MarkedColor byte(14) !Yellow on black - color when the text is marked
- ExitKey short(CtrlEnter) !Exit from editor
- BOL short(HomeKey) !move cursor to beginning of line
- EOL short(EndKey) !move cursor to end of line
- FirstPage short(CtrlPgUp) !go to first page
- LastPage short(CtrlPgDn) !go to last page
- DelWord short(CtrlT) !delete word
- DelEOL short(CtrlEnd) !delete up to end of line
- DelLine short(CtrlY) !delete a line
- Reformat short(CtrlB) !reformat starting from cursor
- MarkBlk short(CtrlK) !start/end marking text
- DelBlk short(CtrlD) !delete marked text
- CopyBlk short(CtrlC) !copy marked text
- MoveBlk short(CtrlM) !move marked text
- Unmark short(CtrlU) !unmark marked text
- PrevWord short(CtrlLeft) !move cursor to previous word
- NextWord short(CtrlRight) !move cursor to next word
-
-
-
- Support
- -------
- These DLLs are free. There is no support. But if you have any
- problems, I can be contacted via CompuServe (100354,1620) and Sable
- Software BBS (FidoNet 3:640/311), or you may send me a postcard.
-
-
-
- Source programs
- ---------------
- The source programs (all in Clarion 3.009) are available for $40
- Australian dollars (including the licence fee to use the source programs
- in your applications). Please send a money order (obtained from the
- post office) to: Mander Li
- 29 Estoril Street,
- Robertson,
- Queensland 4109
- Australia
-
-